<%@ page language="java" pageEncoding="UTF-8"%>
<%@taglib uri="/struts-tags" prefix="s"%>
<%
response.setHeader("Cache-Control","no-cache"); 
%>
<s:if test="%{type==@com.debug.config.Constant@DEBUG_TYPE_BUG}">
<table width="100%"  border="1" cellpadding="0" cellspacing="0"  style="border-collapse:collapse ">
  <tr>
    <td width="22%" height="25" align="right">Description:</td>
    <td width="78%"><textarea name="debug.description" cols="50" rows="7" onChange="setChanged();"></textarea> </td>
  </tr>
  <tr>
    <td height="25" align="right">Level:</td>
    <td><s:select list="config.bugLevel" name="debug.level" headerKey="-1" headerValue="[select a level]" onchange="setChanged();"/></td>
  </tr>
</table>
</s:if>
<s:elseif test="%{type==@com.debug.config.Constant@DEBUG_TYPE_ADVISORY}">
<table width="100%"  border="1" cellpadding="0" cellspacing="0"  style="border-collapse:collapse ">
  <tr>
    <td width="22%" height="25" align="right">Content:</td>
    <td width="78%"><textarea name="debug.content" cols="50" rows="7" onChange="setChanged();"></textarea> </td>
  </tr>
  <tr>
    <td height="25" align="right">Advisory Mode:</td>
    <td><s:select list="config.advisoryMode" name="debug.mode" headerKey="-1" headerValue="[select a mode]" onchange="setChanged();"/></td>
  </tr>
</table>
</s:elseif>
<s:elseif test="%{type==@com.debug.config.Constant@DEBUG_TYPE_UPDATE}">
<table width="100%"  border="1" cellpadding="0" cellspacing="0"  style="border-collapse:collapse ">
  <tr>
    <td width="22%" height="25" align="right">Original function:</td>
    <td width="78%"><textarea name="debug.oldfunction" cols="50" rows="7" onChange="setChanged();"></textarea> </td>
  </tr>
  <tr>
    <td height="25" align="right">New function:</td>
    <td><textarea name="debug.description" cols="50" rows="7" onChange="setChanged();"></textarea></td>
  </tr>
</table>
</s:elseif>
<s:elseif test="%{type==@com.debug.config.Constant@DEBUG_TYPE_NEWFUNCTION}">
<table width="100%"  border="1" cellpadding="0" cellspacing="0"  style="border-collapse:collapse ">
  <tr>
    <td width="22%" height="25" align="right">New Requirement:</td>
    <td width="78%"><textarea name="debug.requirement" cols="50" rows="7" onChange="setChanged();"></textarea></td>
  </tr>
</table>
</s:elseif>
<s:elseif test="%{type==@com.debug.config.Constant@DEBUG_TYPE_OTHER}">
<table width="100%"  border="1" cellpadding="0" cellspacing="0"  style="border-collapse:collapse ">
  <tr>
    <td width="22%" height="25" align="right">Description:</td>
    <td width="78%"><textarea name="debug.description" cols="50" rows="7" onChange="setChanged();"></textarea></td>
  </tr>
</table>
</s:elseif>